<extend name="./Public/main" />
<block name="main">
  <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>添加文章</h5>
                    </div>
                    <div class="ibox-content">
                        <form method="post" class="form-horizontal" action="{:U('Member/update')}" enctype ="multipart/form-data">
                           <input type="hidden" name="member_id" value="{$row.member_id}">
                            <div class="form-group">
                                <label class="col-sm-2 control-label" style="text-align: center;color:red">**必填**</label>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">昵称</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="nickname" value="{$row.nickname}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">电话</label>

                                <div class="col-sm-10">
                                    <input type="type" class="form-control" name="phone" style="width:80%;display: inline-block;" value="{$row.phone}">
                                    <!-- <button type="button" class="btn btn-w-m btn-success">发送验证码</button> -->
                                </div>
                                <!-- <label class="col-sm-2 control-label" style="margin-top: 10px">验证码</label>

                                <div class="col-sm-10">
                                   <input type="type" class="form-control" name="sort" style="margin-top: 10px">
                                </div> -->
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">头像</label>
                                <div class="col-sm-10">
                                    <input type="file" name="pic">
                                    <input type="hidden" name="pic">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                    <button class="btn btn-white" type="submit">取消</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            function checkidentity(){
                var name = $("form input[name='name']").val();
                var idcard = $("form input[name='idcard']").val();
                $.ajax({
                    url:"{:U('Member/checkIdentity')}",
                })
            }
        </script>
</block>